From 8fd9575ab6303a3666b3263659c13e25a9c553e1 Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Thu, 21 Mar 2013 08:47:06 -0400 Subject: [PATCH] window: don't add the background style class when drawing CSD elements We already set it in init, so this is just redundant. The additional window-content style class here is needed so that we can distinguish between the full X window background and the background for the actual window contents. --- gtk/gtkwindow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index 2d047a2d2e..89b9ce780b 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -8956,7 +8956,7 @@ gtk_window_draw (GtkWidget *widget, gtk_cairo_should_draw_window (cr, gtk_widget_get_window (widget))) { gtk_style_context_save (context); - gtk_style_context_add_class (context, GTK_STYLE_CLASS_BACKGROUND); + gtk_style_context_add_class (context, "window-content"); if (priv->client_decorated && priv->decorated && -- 2.30.2